package cn.edu.nju.software.zp13.client.assignment3;

import cn.edu.nju.software.zp13.client.assignment3.studentListXml.StudentList2Xml;
import cn.edu.nju.software.zp13.client.assignment3.xmlGenerator.XmlGenerator;
import cn.edu.nju.software.zp13.core.validator.XmlValidator;

public class Main {
	public static void main(String[] args){
		String prefix=System.getProperty("user.dir");
		XmlValidator.test(prefix+"/xml/studentList.xsd", prefix+"/xml/studentList1.xml");
		XmlGenerator xg=new XmlGenerator(prefix+"/xml/studentList1.xml");
		xg.setXmlContent(new StudentList2Xml());
		xg.createXml(prefix+"/xml/studentList2.xml");
		XmlValidator.test(prefix+"/xml/studentList.xsd", prefix+"/xml/studentList2.xml");
	}
}
